package builder.improve;

/**
 * Created by IntelliJ
 * Author:熊磊
 */
public class Client {
    public static void main(String[] args) {
        HouseDirector houseDirector = new HouseDirector(new CommonHouseBuilder());
        House commonHouse = houseDirector.constructHouse();
        houseDirector.setHouseBuilder(new HighHouseBuilder());
        House highHouse = houseDirector.constructHouse();
        System.out.println(commonHouse);
        System.out.println(highHouse);
    }
}
